package com.assignwork.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.mp.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.time.LocalDate;
import java.time.LocalDateTime;
import org.springblade.core.tool.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * DailyPlan
 */
@Data
@TableName("daily_plan")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DailyPlan对象", description = "日计划")
public class DailyPlan extends BaseEntity {

    /** 计划日期 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "计划日期")
    private LocalDate planDate;

    private String planner;
    
    /** 元数据ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "元数据ID")
    private Long sourceId;
    
    /** 船舶 */
    @ApiModelProperty(value = "船舶")
    private String shipName;

    @ApiModelProperty(value = "航次")
    private String voyage;
    
    /** 泊位 */
    @ApiModelProperty(value = "泊位")
    private String shipBerthKey;
    
    /** 货类 */
    @ApiModelProperty(value = "货类")
    private String cargoType;
    
    /** 进出口 */
    @ApiModelProperty(value = "进出口")
    private String impExp;
    
    /** 装卸 */
    @ApiModelProperty(value = "装卸")
    private String workTypeKey;
    
    /** 散杂货 */
    @ApiModelProperty(value = "散杂货")
    private String packageBulkKey;
    
    /** 总计划吨 */
    @ApiModelProperty(value = "总计划吨")
    private String planTotal;
    
    /** 备注 */
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /** 作业顺序 */
    @ApiModelProperty(value = "作业顺序")
    private Integer workOrder;

    private Integer isEmphasis;
    
}